/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"285BAABB-5E26-440A-84B6-DA7CEEB67FF4"}
 */
var fSeleccion = null;


/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"DA351C8E-150E-4D8F-86FE-CB93043F6335"}
 */
function confirmar(event) {
	var $seleccionados = fSeleccion.split('\n')
	/** @type {JSFoundSet<db:/infocom/prod_categorias_x_prod_subcategorias>}*/
	var $fs = forms.prod_categorias_tbl.prod_categorias_to_prod_categorias_x_prod_subcategorias
	for (var i = 0 ; i < $seleccionados.length ; i++)
	{
		$fs.newRecord()
		$fs.prod_subcategoria_id = $seleccionados[i]
	}
	salir()
}

/**
 * @properties={typeid:24,uuid:"F7DB3026-C596-4CAB-BE68-2AA806DDC27A"}
 */
function salir(){
	fSeleccion = null
	var $win = application.getWindow('NUEVA_SUBCAT')
	$win.hide()
	$win.destroy()
}
